package MyFramePro.Service;

import MyFramePro.Domain.Dto.AddArticleDto;
import MyFramePro.Domain.ResponseResult;
import MyFramePro.Domain.Vo.ArticleInfoVo;
import MyFramePro.Service.Impl.ArticleServiceImpl;
import com.baomidou.mybatisplus.extension.service.IService;
import MyFramePro.Domain.Entity.Article;

public interface ArticleService extends IService<Article> {

    ResponseResult getHotArticleList(); //这里查询的是当前的热门文章

    ResponseResult articleList(Integer pageNum, Integer pageSize, Long categoryId);  //这里是进行分页查询文章列表数据

    ResponseResult getArticleDetail(Long id);   //展示文章的详情信息

    ResponseResult updateViewCount(Long id);    //更新浏览量的接口

    ResponseResult addArticle(AddArticleDto addArticleDto); //这里是写博文的接口

    ResponseResult behindArticleList(Integer pageNum, Integer pageSize, String title, String summary);  //这里是后台文章列表查询的接口

    ResponseResult getArticleInfo(Long id); //这里是查询文章详情的接口

    ResponseResult updateArticle(ArticleInfoVo articleInfoVo);  //这里是更新文章的接口


    ResponseResult deleteArticle(Long id);  //这里是删除文章的功能
}

